package notes.java.zip;

import java.io.File;
import java.nio.charset.Charset;

import org.zeroturnaround.zip.ZipUtil;

/**
 * 
 */
public class ZipUtil2 {
 
	public static void main(String[] args) {
		
		// 压缩
		ZipUtil.pack(new File("D:\\turboc"), new File("d:/aaaaaa.zip"));
		
		// 解压
		ZipUtil.unpack(new File("D:\\turboc\\turboc2.0.zip"), new File("D:\\turboc\\aaaaa\\"), Charset.forName("GBK"));
		
	}
	
}
